package com.wu.common.base.ui.activity;

import android.os.Bundle;

import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import com.wkq.base.frame.activity.MvpActivity;
import com.wkq.base.frame.mosby.delegate.MvpPresenter;
import com.wkq.base.frame.mosby.delegate.MvpView;
import com.wu.common.util.KeyboardUtils;

/**
 * 作者:吴奎庆
 * <p>
 * 时间:2021/2/8
 * <p>
 * 用途: Voa 的基类 为了后期扩展统计以及扩展操作
 */


public abstract class MvpBaseActivity<V extends MvpView, P extends MvpPresenter<V>, T extends ViewDataBinding> extends MvpActivity<V, P> {
    public T binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.binding = DataBindingUtil.setContentView(this, this.getLayoutId());
    }

    @Override
    protected void onResume() {
        super.onResume();
        KeyboardUtils.hideSoftInput(this);
    }
}
